using UnityEngine;
using System.Collections;

public class ENEMYSHOOT : MonoBehaviour {

    public GameObject projectile1;

    public Vector2 m_Offset;

    private float m_FireTime = 1.0f;

    

    private void Update()

    {

        if(Time.time > this.m_FireTime)

        {

            this.m_FireTime = Time.time + (float)Random.Range(this.m_Offset.x, this.m_Offset.y);

            GameObject bulletClone = (GameObject)Instantiate(this.projectile1, this.transform.position, this.transform.rotation);

        }

    }

}